package bdz.projects.cbt.events
{
	import flash.events.Event;

	public class CBTUIEvent extends Event
	{
		public static const HOW_TO_PLAY:String = "howToPlay";
		public static const TOP_SCORES:String = "topScores";
		public static const QUIT_GAME:String = "quitGame";
		
		public static const SHOW_BUY_INTERFACE:String = "showBuyInterface";
		public static const SHOW_SELL_INTERFACE:String = "showSellInterface";
		public static const SHOW_TRAVEL_INTERFACE:String = "showTravelInterface";
		public static const SHOW_MORTGAGE_INTERFACE:String = "showMortgageInterface";
		public static const SHOW_PAYPAL_INTERFACE:String = "showPayPalInterface";
		public static const SHOW_WAREHOUSE_UPGRADE:String = "showWarehouseUpgrade";
		public static const START_GAME:String = "startGame";
		public static const SHOW_QUIT_PANEL:String = "showQuitPanel";
		
		public static const PRODUCT_ITEM_SELECTED:String = "productItemSelected";
		public static const INVENTORY_ITEM_SELECTED:String = "inventoryItemSelected";
		public static const NOTIFY_MORTGAGE:String = "notifyMortgage";
		public static const NOTIFY_INVENTORY:String = "notifyInventory";
		
		
		public static const PANEL_CLOSE:String = "panelClose";
		
		public var data:*;
		public function CBTUIEvent(type:String, info:*=null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			data = info;
			super(type, bubbles, cancelable);
		}
		override public function clone():Event{
			return new CBTUIEvent(type, data, bubbles, cancelable);
		}
		
	}
}